package cn.yunhe.entity;

import lombok.Data;

/*
用户实体类
 */
@Data
public class User {
    private int userId;//用户id
    private String userName;//用户名
    private String userPass;//密码
    private String address;//住址
    private String telphone;//手机号
    private int flag;//用户状态

    public User() {
    }

    public User(int userId) {
        this.userId = userId;
    }

    public User(int userId, String userName, String userPass, String address, String telphone, int flag) {
        this.userId = userId;
        this.userName = userName;
        this.userPass = userPass;
        this.address = address;
        this.telphone = telphone;
        this.flag = flag;
    }

    public User(String userName, String userPass) {
        this.userName = userName;
        this.userPass = userPass;
    }

    public User(String userName, String userPass, String address, String telphone) {
        this.userName = userName;
        this.userPass = userPass;
        this.address = address;
        this.telphone = telphone;
    }


}
